<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>obj</title>
	<script type="text/javascript">
	var obj = new Object();

	obj.name = "xuebingsi";
	obj.sex = "18";

	obj.write = function  (data) {
		document.write(data);
	}

	obj.alert = function  (data) {
		alert(data);
	}

	// console.log(obj);


	// obj.write('学并思是一个教育平台');

	// obj.alert('xbs')

	// alert('fdfdf')


	function car () {
		this.name="奥迪";
		this.color="红色";
		this.run = function  () {
			alert("可以跑");
		}
		this.ziaren = function  () {
			alert("可以载人");
		}
	}


	var obj = new car();
	// obj.price='2000';

	// alert(obj.price);
	// obj.run();

	for(var i in obj){
		alert(i);
	}






	</script>
</head>
<body>
	
</body>
</html>